
package de.justphil.tcg.tcgandroidclient.util;

import android.util.Log;
import android.view.View;

public class TCGLog {
	
	public static final String TAG = "TCG";
	
	public static void i(Object[] objects) {
	
		Log.i(TAG, StringTools.getString(objects));
	}
	
	public static void d(Object[] objects) {
	
		Log.d(TAG, StringTools.getString(objects));
	}
	
	public static void v(Object[] objects) {
	
		Log.v(TAG, StringTools.getString(objects));
	}
	
	public static void w(Object[] objects) {
	
		Log.w(TAG, StringTools.getString(objects));
	}
	
	public static void e(Object[] objects) {
	
		Log.e(TAG, StringTools.getString(objects));
	}
	
	public static void e(Object[] objects, Throwable t) {
	
		Log.e(TAG, StringTools.getString(objects), t);
	}
	
	public static void startingOnCreate(Object o) {
	
		i(new Object[] {
				"Creating ", o.getClass().getSimpleName(), "..." });
	}
	
	public static void finishedOnCreate(Object o) {
	
		i(new Object[] {
				"   Finished creating ", o.getClass().getSimpleName(), "." });
	}
	
	public static void onClick(View v) {
	
		v(new Object[] {
				"Recognized click on ", v.getClass().getSimpleName(), " ", v.getId(), "." });
	}
}
